<!DOCTYPE HTML>
<html>
<head>
    <include file="Common:header_include"/>
    <title>编辑用户</title>
</head>
<body>
<div class="pd-20">
    <form action="{:U('edit')}" method="post" class="form form-horizontal" id="form">
        <input type="text" name="id" hidden value="{$data.id}">
        <div class="row cl">
            <label class="form-label col-5"><span class="c-red">*</span>随访终止分类名称：</label>
            <div class="formControls col-6">
                <input type="text" class="input-text" name="name" value="{$data['name']}" placeholder="请输入"  datatype="*" nullmsg="不能为空">
            </div>
        </div>
        <div class="row cl">
            <label class="form-label col-5"><span class="c-red"></span>随访终止分类描述信息：</label>
            <div class="formControls col-6">
                <textarea rows="9" cols="48" style="resize:none" class="textarea" name="description" placeholder="请输入">{$data['description']}</textarea>
            </div>
        </div>

        <div class="row cl">
            <div class="col-6 col-offset-5">
                <input class="btn btn-primary radius" type="submit" value="提交">
            </div>
        </div>
    </form>
</div>
</div>
<include file="Common:footer_include"/>
<script>
    $(function(){
        selectUserGroup($('input[name="user_group_id"]'));
    });
//    /**
//     * 切换表单必填项
//     * @param obj
//     */
//    function selectUserGroup(obj) {
//        var value = obj.val();
//        if (value == 2) {
//            $('.patient').hide();
//            $('.doctor').show();
//        } else if (value == 3) {
//            $('.patient').show();
//            $('.doctor').hide();
//        } else {
//            $('.patient').hide();
//            $('.doctor').hide();
//        }
//    }

    $('.skin-minimal input').iCheck({
        checkboxClass: 'icheckbox-blue',
        radioClass: 'iradio-blue',
        increaseArea: '20%'
    });

</script>
</body>
</html>